package com.acsior.hibernate.vo;

// default package

import java.util.ArrayList;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;
import com.acsior.ddfn.impl.hibernate.vo.NomElementVO;

/**
 * NomSecurityResourceType entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "nom_security_resource_types", uniqueConstraints = @UniqueConstraint(columnNames = "system_name"))
@GeneratorKey(tableName = "nom_security_resource_types")
public class NomSecurityResourceTypeVO extends NomElementVO {
	private static final long serialVersionUID = -4169663351889876385L;

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "nomSecurityResourceType")
	private List<SecAllowedGroupResourceVO> secAllowedGroupResources;

	// Constructors

	/** default constructor */
	public NomSecurityResourceTypeVO() {
		this.secAllowedGroupResources = new ArrayList<SecAllowedGroupResourceVO>();
	}

	/**
	 * @return стойността на secAllowedGroupResources
	 */
	public List<SecAllowedGroupResourceVO> getSecAllowedGroupResources() {
		return this.secAllowedGroupResources;
	}

	
	/**
	 * @param secAllowedGroupResources се залага в secAllowedGroupResources
	 */
	public void setSecAllowedGroupResources(List<SecAllowedGroupResourceVO> secAllowedGroupResources) {
		this.secAllowedGroupResources = secAllowedGroupResources;
	}
}